﻿package  {
	
	import flash.display.MovieClip;
	import flash.events.MouseEvent;
	
	
	public class PetChangeNameUI extends MovieClip 
	{
		
		
		public function PetChangeNameUI() 
		{
			// constructor code
			
			this.x = 0;
			this.y = 220;
			
			okBtn.addEventListener( MouseEvent.CLICK , onClick );
			changeBtn.addEventListener( MouseEvent.CLICK , onClick );
		}
		
		public function release():void
		{
			okBtn.removeEventListener( MouseEvent.CLICK , onClick );
			changeBtn.removeEventListener( MouseEvent.CLICK , onClick );
		}
		
		public function onClick( e:MouseEvent ):void
		{
			this.visible = false;
		}
		
		
	}
	
}
